import request from '@/utils/request.js'

// 获取列表
export const getListApi = (params) => request.get('/community', { params })
// 删除
export const delListApi = (id) => request.delete('/community/' + id)
// 添加
export const addListApi = (data) => request.post('/community', data)
// 获取详情
export const getListInfoApi = (id) => request.get('/community/' + id)
// 修改
export const editListApi = (data) => request.put('/community/' + data.id, data)